package car.aistar.service.Impl.xrb;

import car.aistar.dto.XrbRecent;
import car.aistar.service.DealCarService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

/**
 * @ClassName testDealCar
 * @Description TODO 测试最近成交车辆信息
 * @Author laoxu
 * @Date 2020/10/5 3:03
 * Version 1.0
 **/

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:spring/spring-*.xml")
public class test2 {
    @Autowired
    private DealCarService dealCarService;

    @Test
    public void testDeal(){
        List<XrbRecent> xrbRecentList = dealCarService.queryDealCar("大众","凌度","2020","09");
        for (XrbRecent c : xrbRecentList) {
            System.out.println(c.getRePrice());
        }

    }
}
